package feign.okhttp.learn.feign;


import javax.validation.Valid;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import feign.okhttp.learn.dto.UserInfoDto;

@Validated
@FeignClient(name = "FeignValidService", url = "http://127.0.0.1:8011/")
public interface FeignValidService {

    @PostMapping(value = "/saveUserInfo")
    String saveUserInfo(@Valid @RequestBody UserInfoDto userInfoDto);

}
